if [ ! -d bin ]; then
	mkdir bin
fi

# ch03

## exit

#as --gstabs src/03firstprogram/exit.s -o bin/exit.o
#ld bin/exit.o -o bin/exit
#bin/exit
#echo $?

## maximum
#as --gstabs src/03firstprogram/maximum.s -o bin/maximum.o
#ld bin/maximum.o -o bin/maximum
#bin/maximum
#echo $?

#ch04
## power
as --gstabs src/04function/power.s -o bin/power.o
ld bin/power.o -o bin/power
bin/power
echo $?


#rm -rf bin
